import {
    AppstoreOutlined,
    SafetyOutlined,
    MailOutlined,
    PieChartOutlined,
    UnorderedListOutlined,
    ShoppingCartOutlined,
    UserOutlined,
    BarChartOutlined,
    LineChartOutlined
  } from "@ant-design/icons";
//数组的路由模块
const menuList = [
    {
        label: "首页", //菜单标题名称
        key: "/home", //对应的 path
        icon: <PieChartOutlined />, //图标名称
        isPublic:true //公开的
    },
    {
        label: "商品",
        key: "/products",
        icon: <MailOutlined />,
        children: [
            //子菜单列表
            {
                label: "品类管理",
                key: "/category",
                icon: <UnorderedListOutlined />,
            },
            {
                label: "商品管理",
                key: "/product",
                icon: <ShoppingCartOutlined />,
            },
        ],
    },
    {
        label: "用户管理",
        key: "/user",
        icon: <UserOutlined />,
    },
    {
        label: "角色管理",
        key: "/role",
        icon: <SafetyOutlined />,
    },
    {
        label: '图形图表',
        key: '/charts',
        icon: <AppstoreOutlined />,
        children: [
            {
                label: '柱形图',
                key: '/charts/bar',
                icon: <BarChartOutlined />
            },
            {
                label: '折线图',
                key: '/charts/line',
                icon: <LineChartOutlined />
            },
            {
                label: '饼图',
                key: '/charts/pie',
                icon: <PieChartOutlined />
            },
        ]
    }
];


export default menuList;